package com.example.demo.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;

/**
 * 用户配额更新请求。
 */
@Data
@Schema(description = "用户 ZIP 配额更新请求")
public class UserQuotaUpdateRequest {

    @Min(value = 0, message = "配额不能为负数")
    @Schema(description = "ZIP 总配额", example = "10")
    private int zipQuota;

    @Min(value = 0, message = "已使用次数不能为负数")
    @Schema(description = "已使用次数，可选", example = "2")
    private Integer zipUsed;
}
